package net.zoneland.knowledge.constant;

/**
 * 系统常量.
 * @author Pbody
 * 14:24 2020/3/10
 **/
public final class Constants {

    private Constants() {
    }

    /**
     * 数据库默认的分页数.
     */
    public static final int DEFAULT_DB_PAGE_SIZE = 10;

    /**
     * 逗号分隔符.
     */
    public static final String STRING_SPLIT = ",";

    /**
     * 横杠.
     */
    public static final String STRING_SPLIT_FLAG_MIDDLE_LINE = "-";

    /**
     * 下划线.
     */
    public static final String STRING_SPLIT_FLAG_SUB_LINE = "_";

    /**
     * 冒号分隔符.
     */
    public static final String STRING_SPLIT_FLAG_COLON = ":";

    /**
     * 斜杠.
     */
    public static final String STRING_JOIN_XG = "/";

    /**
     * 分号.
     */
    public static final String STRING_SEMICOLON = ";";

    /**
     * 百分号.
     */
    public static final String STRING_PERCENT = "%";

    /**
     * 登录SESSION标识.
     */
    public static final String OPERATION_ATTR = "OPERATION_ATTR";

    /**
     * uum session id.
     */
    public static final String UUM_SESSION_ID = "UUM_SESSION_ID";

    /**
     * oasso session id.
     */
    public static final String OASSO_SESSION_ID = "OASSO_SESSION_ID";

    /**
     * 资源菜单一级父节点.
     */
    public static final String RESOURCE_ROOT_PARENT = "00000000";

    /**
     * 资源菜单二级我的工作节点.
     */
    public static final String RESOURCE_ROOT_MYJOB  = "02000000";

    /**
     * 我的推送菜单.
     */
    public static final String RESOURCE_MYPUSH      = "02110000";

    /**
     * session中的角色key.
     */
    public static final String SESSION_ATTRMAP_ROEL = "role";

    /**
     * session中的权限key.
     */
    public static final String SESSION_ATTRMAP_RESOURCE = "resList";

    /**
     * session中的菜单key.
     */
    public static final String SESSION_ATTRMAP_MENU = "menuList";

    /**
     * session中的用户信息.
     */
    public static final String SESSION_ATTRMAP_USER = "userInfo";

    /**
     * session中的用户信息.
     */
    public static final String TOKEN_NAME = "aitalk_token";

    /**
     * 用来外部rest调用token.
     */
    public static final String APP_TOKEN = "app_token";

    /**
     * 直属党委负责人.
     */
    public static final String ROLE_ZSDWFZR = "zsdwfzr";

    /**
     * 直属党委经办人.
     */
    public static final String ROLE_ZSDWJBR = "zsdwjbr";

    /**
     * 没有答案的配置项名称.
     */
    public static final String NO_ANSWER_KEY_ANSWER = "noAnswer";

    /**
     * 没有我的收藏的配置项名称.
     */
    public static final String NO_ANSWER_KEY_FAVORITE = "noFavorite";

    /**
     * 默认日期格式字符串.
     */
    public static final String DATE_FORMAT_DEFAULT = "yyyy-MM-dd";

    /**
     * 默认日期格式字符串.
     */
    public static final String DATE_TIME_FORMAT_DEFAULT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 带分钟的日期格式.
     */
    public static final String DATE_TIME_FORMAT_WITH_MINUTE = "yyyy-MM-dd HH:mm";

    /**
     * 邮件转发人.
     */
    public static final String EMAIL_LEADER = "emailLeader";

    /**
     * 参数.
     */
    public static final String PARAM = "param";

    /**
     * 干事角色.
     */
    public static final String ROLE_GANSHI = "ganshi";

    /**
     * 印章管理员.
     */
    public static final String ROLE_CHAPTER_ADMIN = "chapterAdmin";

    /**
     * 抄送.
     */
    public static final String ROLE_COPY_SUBMIT_USER = "copySubmitUser";

    /**
     * 下发人员.
     */
    public static final String ROLE_ISSUED_USER = "issuedUser";

    /**
     * 保存类型（保存）
     */
    public static final String SAVE_TYPE_SAVE = "save";

    /**
     * 保存类型（复制）
     */
    public static final String SAVE_TYPE_COPY = "copy";

    /**
     * 保存类型（提交）
     */
    public static final String SAVE_TYPE_SUBMIT = "submit";

    /**
     * 转交人用户id参数名.
     */
    public static final String TRANSFER_USER_ID = "transferUserId";

    /**
     * 转交人用户中文名.
     */
    public static final String TRANSFER_USER_NAME = "transferUserName";

    /**
     * 转交人组织短名称
     */
    public static final String TRANSFER_ORG_SHORT_NAME = "transferOrgShortName";

    /**
     * 转交人类型
     */
    public static final String TRANSFER_TYPE = "transferType";

    /**
     * 用户角色缓存超时时长（小时）.
     */
    public static final long USER_ROLE_CACHE_EXPIRE_HOURS = 4L;

    /**
     * 书记项目-excel表头前缀.
     */
    public static final String SECRETARY_PROJECT_EXCEL_TITLE_PRE = "中国移动浙江公司基层党支部 ";

    /**
     * 书记项目-excel表头后缀.
     */
    public static final String SECRETARY_PROJECT_EXCEL_TITLE_SUF = " 年度\r\n “领题破题 合力攻坚”项目立项书";

    /**
     * 会议id.
     */
    public static final String MEETING_ID = "meetingid";

    /**
     * 催办类型.
     */
    public static final String URGING_TYPE = "urgingtype";
}
